package de.muehle;

import java.awt.Color;
import java.util.Vector;

import javax.media.j3d.*;
import javax.vecmath.*;

import com.sun.j3d.utils.geometry.*;
import com.sun.j3d.utils.image.TextureLoader;

public class DomeShape extends BoxHaus {

	public DomeShape(float width1, float width2, float height) {
		super(width1, width2, height);
	}

	protected Appearance defineAppearance() {

		TextureLoader loader = new TextureLoader("textures/housebrick.jpg",	null);
		Texture2D tex = (Texture2D) loader.getTexture();
		Appearance app = new Appearance();
		app.setTexture(tex);
		app.setPolygonAttributes(new PolygonAttributes(PolygonAttributes.POLYGON_FILL, PolygonAttributes.CULL_NONE, 0f));
		return app;
	}
}
